home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / tweak16b.zip / DETECT.HPP < prev    next >
C/C++ Source or Header  |  1993-11-26  |  690b  |  29 lines

  1. #ifndef _DETECT_HPP
  2. #define _DETECT_HPP
  3.  
  4. #include "misc.hpp"
  5. #include "regtable.hpp"
  6. #include "vgalib.hpp"
  7.  
  8.  
  9. struct ModeInfo
  10.     {
  11.     enum EmulType { EM_CONFLICT, HERC, CGA, VGA };
  12.     enum ColorsType { COLOR2=2, COLOR4=4, COLOR16=16, COLOR256=256 };
  13.     enum AGType { AG_CONFLICT, ALPHA, GRAPHICS };
  14.  
  15.     EmulType emulation;
  16.     AGType alphaGraph;
  17.     ColorsType colors;
  18.     int hClocks, vClocks, xres, yres, lineClocks, spareClocks, adrOffset,
  19.         hPixelsPerClock, vxres, vyres, vxresBytes;
  20.     float xpages, ypages;
  21.     Boolean countBy2, chain4;
  22.  
  23.     ModeInfo(RegisterTable &rt)            { detectFrom(rt); }
  24.     void detectFrom(RegisterTable &);
  25.     GraphicsAPI *getGraphicsAPI();
  26.     void show();
  27.     };
  28.  
  29. #endif